const go/types._InvalidUnion
9 uses
go/types (current package)
errorcodes.go#L1367: _InvalidUnion
typeset.go#L424: check.errorf(atPos(pos), _InvalidUnion, "cannot handle more than %d union terms (implementation limitation)", maxTermCount)
union.go#L70: check.errorf(x, _InvalidUnion, "cannot handle more than %d union terms (implementation limitation)", maxTermCount)
union.go#L100: check.errorf(tlist[i], _InvalidUnion, "invalid use of ~ (%s is an interface)", t.typ)
union.go#L105: check.errorf(tlist[i], _InvalidUnion, "invalid use of ~ (underlying type of %s is %s)", t.typ, u)
union.go#L118: check.errorf(tlist[i], _InvalidUnion, "cannot use %s in union (%s contains methods)", t, t)
union.go#L120: check.error(tlist[i], _InvalidUnion, "cannot use comparable in union")
union.go#L122: check.errorf(tlist[i], _InvalidUnion, "cannot use %s in union (%s embeds comparable)", t, t)
union.go#L130: check.softErrorf(tlist[i], _InvalidUnion, "overlapping terms %s and %s", t, terms[j])